package com.yzkj.cpjxc.business.service;

import com.yzkj.cpjxc.business.domain.DicObj;
import com.yzkj.cpjxc.business.framework.common.BusinessMap;
import com.yzkj.cpjxc.business.framework.common.Pager;

import java.util.List;

/**
 * 字典公共管理 Service 接口
 */
public interface DicObjService {
	
	/**
	 * @description: 获取查询分页对象
	 */
	public Pager<DicObj> search(Pager<DicObj> pager, DicObj dicObj) throws Exception;
	
	/**
	 * 新增管理
	 */
	public BusinessMap create(DicObj dicObj) throws Exception;
	
	/**
	 * 判断是否存在
	 */
	public boolean isExists(DicObj dicObj) throws Exception;
	
	/**
	 * 根据ID获取
	 * @creator: shenghe.he
	 * @modifier:
	 * @modifiedDate:
	 * @param uuid
	 * @return
	 * @throws Exception
	 */
	public DicObj getById(String uuid) throws Exception;
	
	/**
	 * 编辑专委会管理
	 * @creator: shenghe.he
	 * @modifier:
	 * @modifiedDate:
	 * @param dicObj
	 * @return
	 * @throws Exception
	 */
	public BusinessMap edit(DicObj dicObj) throws Exception;
	
	/**
	 * 根据ID删
	 * @creator: shenghe.he
	 * @modifier:
	 * @modifiedDate:
	 * @param uuid
	 * @return
	 * @throws Exception
	 */
	public boolean delete(String uuid) throws Exception;

	public List<DicObj> getObjectList(String dicType) throws Exception;

	public DicObj getByDicName(DicObj dicObj) throws Exception;

}
